package edu.joe.game;

public class SceneCamera {

	public double camX;
	public double camY;
	public double camZ;

	public double atX;
	public double atY;
	public double atZ;

	public double orbitDistance;
	public double orbitSpeed;

	public SceneCamera(double x, double y, double z, double tx, double ty,
			double tz) {
		this.camX = x;
		this.camY = y;
		this.camY = z;
		this.atX = tx;
		this.atY = ty;
		this.atZ = tz;

		this.orbitDistance = 1;
		this.orbitSpeed = 1;
	}

	public void updateOrbit(double accumTime) {
		this.camX = Math.cos(accumTime * this.orbitSpeed) * orbitDistance;
		this.camZ = Math.sin(accumTime * this.orbitSpeed) * orbitDistance;
	}

	public void setCam(double x, double y, double z) {
		this.camX = x;
		this.camY = y;
		this.camZ = z;
	}

	public void setAt(double x, double y, double z) {
		this.atX = x;
		this.atY = y;
		this.atZ = z;
	}
}
